import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom'
import Menu from './components/naviator/menu'
import { Provider } from 'react-redux'
import {store,persistor}  from './store'
import { PersistGate } from 'redux-persist/integration/react'
// 加载样式文件
import 'antd/dist/antd.less'
import './load.less'
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <BrowserRouter>
        <Provider store={store}>
            <PersistGate persistor={persistor}>
                <App />
            </PersistGate>
        </Provider>
    </BrowserRouter>
);
